package com.srwl.mytx.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.srwl.mytx.R;
import com.srwl.mytx.fragment.BalanceStatementFragment;
import com.srwl.mytx.fragment.TaskReceivedRecordFragment;

/**
 * 悬赏任务领取记录页面
 */
public class TaskReceivedRecordActivity extends BaseActivity {
    public static void startActivity(Context context, String topicId) {
        context.startActivity(new Intent(context, TaskReceivedRecordActivity.class).putExtra("topicId", topicId));
    }


    @Override

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.statement_activity);
        String topicId = getIntent().getStringExtra("topicId");
        if (savedInstanceState == null) {
            getSupportFragmentManager().beginTransaction()
                    .replace(R.id.container, TaskReceivedRecordFragment.newInstance(topicId))
                    .commitNow();
        }
    }
}
